<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>地磁传感器信息管理</title>
	<meta name="decorator" content="default"/>
	<link rel="stylesheet" href="${pageContext.request.contextPath}/jeesite/tLane/css/tLane.css">
	<script type="text/javascript" src="${pageContext.request.contextPath}/jeesite/tLane/js/tLane.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/geomagnetic_sensor/geomagneticSensor/">地磁传感器信息列表</a></li>
		<li class="active"><a href="${ctx}/geomagnetic_sensor/geomagneticSensor/form?id=${geomagneticSensor.id}">地磁传感器信息<shiro:hasPermission name="geomagnetic_sensor:geomagneticSensor:edit">${not empty geomagneticSensor.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="geomagnetic_sensor:geomagneticSensor:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/>
	<div class="divleft" >
		<div>
			<label class="control-label">车道名称：</label>
			<div class="controls">
				<select name="lanename" id="lanename">
					<option value="0">1号车道</option>
					<option value="1">2号车道</option>
					<option value="2">3号车道</option>
					<option value="3">4号车道</option>
					<option value="4">5号车道</option>
					<option value="5">6号车道</option>
				</select>
				<%--<input type="text" name="lanename" id="lanename" placeholder="请输车道名称" onblur="lanenamet()" onfocus="tlane(name)"/>--%>
				<%--<span class="lanenamesss sss">*</span>--%>
			</div>
		</div>
		<div>
			<label class="control-label">引导灯编号：</label>
			<div class="controls">
				<input type="text" name="guiding" id="guiding" placeholder="请输入引导灯编号" onblur="guidingt()" onfocus="tlane(name)"/>
				<span class="guidingsss sss">*</span>
			</div>
		</div>
		<div>
			<label class="control-label">引导灯ip：</label>
			<div class="controls">
				<input type="text" name="ip" id="ip" placeholder="请输入127.0.0.1格式" onblur="ipt()" onfocus="tlane(name)"/>
				<span class="ipsss sss">*</span>
			</div>
		</div>
		<div>
			<label class="control-label">引导灯端口：</label>
			<div class="controls">
				<input type="text" name="guidingport" id="guidingport" placeholder="请输入端口号" onblur="guidingportt()" onfocus="tlane(name)"/>
				<span class="guidingportsss sss">*</span>
			</div>
		</div>
		<div>
			<label class="control-label">引导灯状态：</label>
			<div class="switch" data-on-label="<i class='icon-ok icon-white'></i>" data-off-label="<i class='icon-remove'></i>">
				<input type="checkbox" checked />
			</div>
		</div>
	</div>
	<div class="divright" >
		<table>
			<tr><th></th>
				<th><label class="control-label">位置</label></th>
				<th><label class="control-label" style="width: 127px;text-align: center;">IP地址</label></th>
				<th><label class="control-label">端口</label></th>
				<th>状态</th>
			</tr>
			<tr><td><label class="control-label">地磁1:</label></td>
				<td><input type="text" class="SNcss" name="0" id="one"/></td>
				<td><input type="text" name="0ip" style="width: 114px;"/></td>
				<td><input type="text" class="duankouW" name="dunkou0"/></td>
				<td>
					<div class="switch" data-on-label="<i class='icon-ok icon-white'></i>" data-off-label="<i class='icon-remove'></i>">
						<input type="checkbox" checked />
					</div>
				</td>
			</tr>
			<tr><td><label class="control-label">地磁2:</label></td>
				<td><input type="text" class="SNcss" name="1" id="two"/></td>
				<td><input type="text" name="1ip" style="width: 114px;"/></td>
				<td><input type="text" class="duankouW" name="dunkou1"/></td>
				<td>
					<div class="switch" data-on-label="<i class='icon-ok icon-white'></i>" data-off-label="<i class='icon-remove'></i>">
						<input type="checkbox" checked />
					</div>
				</td></tr>
			<tr><td><label class="control-label">地磁3:</label></td>
				<td><input type="text" class="SNcss" name="2" id="three"/></td>
				<td><input type="text" name="2ip" style="width: 114px;"/></td>
				<td><input type="text" class="duankouW" name="dunkou2"/></td>
				<td>
					<div class="switch" data-on-label="<i class='icon-ok icon-white'></i>" data-off-label="<i class='icon-remove'></i>">
						<input type="checkbox" checked />
					</div>
				</td></tr>
			<tr><td><label class="control-label">地磁4:</label></td>
				<td><input type="text" class="SNcss" name="3" id="four"/></td>
				<td><input type="text" name="3ip" style="width: 114px;"/></td>
				<td><input type="text" class="duankouW" name="dunkou3"/></td>
				<td>
					<div class="switch" data-on-label="<i class='icon-ok icon-white'></i>" data-off-label="<i class='icon-remove'></i>">
						<input type="checkbox" checked />
					</div>
				</td></tr>
			<tr><td><label class="control-label">地磁5:</label></td>
				<td><input type="text" class="SNcss" name="4" id="five"/></td>
				<td><input type="text" name="4ip" style="width: 114px;"/></td>
				<td><input type="text" class="duankouW" name="dunkou4"/></td>
				<td>
					<div class="switch" data-on-label="<i class='icon-ok icon-white'></i>" data-off-label="<i class='icon-remove'></i>">
						<input type="checkbox" checked />
					</div>
				</td></tr>
			<tr><td><label class="control-label">地磁6:</label></td>
				<td><input type="text" class="SNcss" name="5" id="six"/></td>
				<td><input type="text" name="5ip" style="width: 114px;"/></td>
				<td><input type="text" class="duankouW" name="dunkou5"/></td>
				<td>
					<div class="switch" data-on-label="<i class='icon-ok icon-white'></i>" data-off-label="<i class='icon-remove'></i>">
						<input type="checkbox" checked />
					</div>
				</td></tr>
		</table>
	</div>
	<div class="bottom" >
		<button type="button" class="btn btn-primary btn-sm save">保存</button>
		<button type="button" class="btn btn-default btn-sm" onclick="history.go(-1)">取消</button>

	</div>

	<%--<form:form id="inputForm" modelAttribute="geomagneticSensor" action="${ctx}/geomagnetic_sensor/geomagneticSensor/save" method="post" class="form-horizontal">--%>
		<%--<form:hidden path="id"/>--%>
		<%--<sys:message content="${message}"/>		--%>
		<%--<div class="control-group">--%>
			<%--<label class="control-label">传感器编号：</label>--%>
			<%--<div class="controls">--%>
				<%--<form:input path="sensorCode" htmlEscape="false" maxlength="64" class="input-xlarge "/>--%>
			<%--</div>--%>
		<%--</div>--%>
		<%--<div class="control-group">--%>
			<%--<label class="control-label">传感器描述：</label>--%>
			<%--<div class="controls">--%>
				<%--<form:input path="sensorDesc" htmlEscape="false" maxlength="64" class="input-xlarge "/>--%>
			<%--</div>--%>
		<%--</div>--%>
		<%--<div class="control-group">--%>
			<%--<label class="control-label">ip：</label>--%>
			<%--<div class="controls">--%>
				<%--<form:input path="ip" htmlEscape="false" maxlength="64" class="input-xlarge "/>--%>
			<%--</div>--%>
		<%--</div>--%>
		<%--<div class="control-group">--%>
			<%--<label class="control-label">端口：</label>--%>
			<%--<div class="controls">--%>
				<%--<form:input path="port" htmlEscape="false" maxlength="64" class="input-xlarge "/>--%>
			<%--</div>--%>
		<%--</div>--%>
		<%--<div class="control-group">--%>
			<%--<label class="control-label">地磁位置：</label>--%>
			<%--<div class="controls">--%>
				<%--<form:input path="location" htmlEscape="false" maxlength="2" class="input-xlarge required"/>--%>
				<%--<span class="help-inline"><font color="red">*</font> </span>--%>
			<%--</div>--%>
		<%--</div>--%>
		<%--<div class="control-group">--%>
			<%--<label class="control-label">地磁状态：</label>--%>
			<%--<div class="controls">--%>
				<%--<form:select path="status" class="input-xlarge required">--%>
					<%--<form:option value="" label=""/>--%>
					<%--<form:options items="${fns:getDictList('light_status')}" itemLabel="label" itemValue="value" htmlEscape="false"/>--%>
				<%--</form:select>--%>
				<%--<span class="help-inline"><font color="red">*</font> </span>--%>
			<%--</div>--%>
		<%--</div>--%>
		<%--<div class="control-group">--%>
			<%--<label class="control-label">创建时间：</label>--%>
			<%--<div class="controls">--%>
				<%--<input name="creatTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate "--%>
					<%--value="<fmt:formatDate value="${geomagneticSensor.creatTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"--%>
					<%--onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>--%>
			<%--</div>--%>
		<%--</div>--%>
		<%--<div class="control-group">--%>
			<%--<label class="control-label">更新时间：</label>--%>
			<%--<div class="controls">--%>
				<%--<input name="updateTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate "--%>
					<%--value="<fmt:formatDate value="${geomagneticSensor.updateTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"--%>
					<%--onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>--%>
			<%--</div>--%>
		<%--</div>--%>
		<%--<div class="form-actions">--%>
			<%--<shiro:hasPermission name="geomagnetic_sensor:geomagneticSensor:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>--%>
			<%--<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>--%>
		<%--</div>--%>
	<%--</form:form>--%>
</body>
</html>